<?php

if(!isset($_COOKIE['SH_name'])&&!isset($_COOKIE['SH_pass'])&&!isset($_COOKIE['SH_k_key']))
{
	header('location:lg.php');
	exit();
}else{
	if($_COOKIE['SH_name']!='think'&&$_COOKIE['SH_pass']!='user'&&$_COOKIE['SH_k_key']!='glados')
	{
		header('location:/index.php');
		exit();
	}
}
//--use database
$mysql_server_name = "localhost";
$mysql_username	= "litianle_fm_man";
$mysql_password = "5228586";
$mysql_database = "litianle_fm_man";

//--connect database
$conn = mysql_connect ($mysql_server_name, $mysql_username , $mysql_password);

//--chose database
mysql_select_db($mysql_database,$conn);

//--set names
mysql_query("set names utf8");

$sql = "SELECT `name`,`show`,`grade`,`branch`,`mobile`,`qq`,`sid` FROM `top_man_tmp`;";
$result = mysql_query($sql);

$s = dirname(__FILE__);
$array = explode(DIRECTORY_SEPARATOR,$s);
$num =count($array)-2;


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>
所有数据都已备份，并且都在数据库可以再进行操作。请管理人员不要做无谓的傻事！
<?php
while($row = mysql_fetch_row($result))
{
	$id = $row[6];
?>
<table width="856" height="200" border="1">
  <tr>
    <td width="200" rowspan="5"><img src="/show_tmp/<?php echo $row[1];?>" /></td>
    <td width="195" rowspan="5"><a href="f.php?sid=<?php echo $row[6];?>&f=in">审核通过</a>  / <a href="f.php?sid=<?php echo $row[6];?>&f=del">审核不通过</a></td>
    <td width="439">姓名：<?php echo $row[0];?>(sid :<?php echo $row[6];?>)</td>
  </tr>
  <tr>
    <td>年级：<?php echo $row[2];?></td>
  </tr>
  <tr>
    <td>专业：<?php echo $row[3];?></td>
  </tr>
  <tr>
    <td>手机：<?php echo $row[4];?></td>
  </tr>
  <tr>
    <td>QQ：<?php echo $row[5];?></td>
  </tr>
</table>
<?php
}
?>
<p>&nbsp;</p>
</body>
</html>
